/**
 ******************************************************************************
 * @file    main.c
 * @author  MCD Application Team
 * @version V1.4.0
 * @date    2024-11-23
 * @brief   Main program body
 ******************************************************************************
 * @attention
 *
 *
 *
 ******************************************************************************
 */

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_gpio.h"
#include "stm32f4xx_rcc.h"
#include <stdio.h>
#include "LED.h"
#include "key.h"
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/

/**
 * @brief  Main program
 * @param  None
 * @retval None
 */
int main(void)
{

  
  LCD_Init();
  KEY_Init();
  while (1)
  {
    if (GPIO_ReadInputDataBit(GPIOA, KEY1) == 0)
    {
      LED1_off();
    }
    else
    {
      LED1_on();
    }
    if (GPIO_ReadInputDataBit(GPIOE, KEY2) == 0)
    {
      LED2_off();
    }
    else
    {
      LED2_on();
    }
    if (GPIO_ReadInputDataBit(GPIOE, KEY3) == 0)
    {
      LED3_off();
    }
    else
    {
      LED3_on();
    }
    if (GPIO_ReadInputDataBit(GPIOE, KEY4) == 0)
    {
      LED4_off();
    }
    else
    {
      LED4_on();
    }
  }
}
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
